package com.wunu.smartlock1.net.response;
import com.google.gson.annotations.SerializedName;

public class LockItem {
    private int id;
    private int state;
    private String name;
    private int model;
    private String mac;
    @SerializedName("image")
    private String imageUrl;
    private String note;
    private Integer  memberGroup;
    private int memberState;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getModel() {
        return model;
    }

    public void setModel(int model) {
        this.model = model;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getMemberGroup() {
        return memberGroup;
    }

    public void setMemberGroup(Integer memberGroup) {
        this.memberGroup = memberGroup;
    }

    public int getMemberState() {
        return memberState;
    }

    public void setMemberState(int memberState) {
        this.memberState = memberState;
    }

    @Override
    public String toString() {
        return "LockItem{" +
                "id=" + id +
                ", state=" + state +
                ", name='" + name + '\'' +
                ", model=" + model +
                ", mac='" + mac + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", note='" + note + '\'' +
                ", memberGroup=" + memberGroup +
                ", memberState=" + memberState +
                '}';
    }

    public String getMemberType(){
        switch (this.memberGroup){
            case 0:return "  管理员";
            case 1:return "家庭成员";
            case 2:return "    保姆";
            case 3:return "  钟点工";
            default:return "类型错误";
        }
    }
}
